#ifndef MAIN_H
#define MAIN_H


#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#include "matrixtest.h"


// Performance macro
#define PERFORMANCE_TEST( code )    QTime time(0,0); time.start(); code cout << endl << "Time elapsed: " << time.elapsed() << endl << endl;

// Exceptions macro
#define TRY                             try {
#define FAIL_ON_EXCEPTION               } catch( QString *msg ) { QFAIL( msg->toAscii().constData() ); delete msg; }
#define EXPECT_EXCEPTION( message )     QFAIL( message ); } catch( QString *msg ) { delete msg; }
#define LOOKFOR_EXCEPTION( message )    QWARN( message ); } catch( QString *msg ) { delete msg; }


#endif // MAIN_H
